import requests
from lxml import etree

url = 'https://hotel.qunar.com/'
res = requests.get(url)
print(res.status_code)

xhtml = etree.HTML(res.text)
title = xhtml.xpath('//p[@class="name text-elli-one"]/text()')
print(title)
fen = xhtml.xpath('//p[@class="score"]/span/text()')
print(fen)
jia  = xhtml.xpath('//p[@class="comm_num"]/text()')
print(jia)
dan = xhtml.xpath('//p[@class="price"]/text()')
print(dan)